home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 30
/
Aminet 30 (1999)(Schatztruhe)[!][Apr 1999].iso
/
Aminet
/
text
/
hyper
/
htmledit.lha
/
HTMLEdit
/
rexx
/
LoadToIBrowse.hrx
< prev
next >
Wrap
Text File
|
1999-01-04
|
758b
|
41 lines
/*
**
** Load To IBrowse - ARexx script for HTMLEditor
** $VER: LoadToIBrowse.hrx © Adam 'Sherwood' Zaparcinski
** This script saves actually edited file and loads this file to IBrowse
** Tested with IBrowse 1.02 demo
**
*/
options results
address 'HTMLEDIT.1'
/* save edited file */
he_save
/* get name of file (with path) */
he_getfilename
URL=RESULT
URL=INSERT("file:///",URL)
/* path to IBrowse should be specified as an argument */
PARSE ARG BROWSERPATH
/* check if IBrowse is running and run it if isnt */
IF ~SHOW('P','IBROWSE') THEN DO
ADDRESS COMMAND
'RUN >NIL:' BROWSERPATH
'SYS:rexxc/WaitForPort' IBROWSE
IF RC>0 THEN DO
say "No port"
EXIT 5
END
END
/* now load our file to IBrowse */
ADDRESS IBROWSE
GotoURL URL
exit